<template>
  <div id="checkEmail">
    <el-table
      :data="tableData"
      border
      style="width: 100%">
      <el-table-column
        fixed
        prop="state"
        label="状态"
        width="150">
      </el-table-column>
      <el-table-column
        prop="sender"
        label="发件人"
        width="120">
      </el-table-column>
      <el-table-column
        prop="theme"
        label="邮件主题"
        width="120">
      </el-table-column>
      <el-table-column
        prop="content"
        label="邮件内容"
        width="120">
      </el-table-column>
      <el-table-column
        prop="time"
        label="发件时间"
        width="300">
      </el-table-column>
      <el-table-column
        fixed="right"
        label="操作"
        width="100">
        <template scope="scope">
          <el-button @click="handleClick" type="text" size="small">
            <router-link to='/index/email/emailDetail' tag="span">查看</router-link>
          </el-button>
          <el-button type="text" size="small">删除</el-button>
        </template>
      </el-table-column>
    </el-table>


  </div>
</template>

<script>
  export default {
    name: 'checkEmail',

    data(){
      return{
        tableData: [{
          state: '未付费',
          sender: '王小虎',
          theme: '恋爱',
          content: '爱情对对碰',
          time: '2016-05-04 17:11:12'
         
        }, {
          state: '已付费',
          sender: '王小虎',
          theme: '恋爱',
          content: '爱情对对碰',
          time: '2016-05-04 17:11:12'
          
        }, {
          state: '未付费',
          sender: '王小虎',
          theme: '恋爱',
          content: '爱情对对碰',
          time: '2016-05-04 17:11:12'
          
        }, {
         state: '未付费',
          sender: '王小虎',
          theme: '恋爱',
          content: '爱情对对碰',
          time: '2016-05-04 17:11:12'
          
        }]


      }
    },
    methods:{
       handleClick() {
        console.log(1);
      }


    }
  }
</script>

<style scoped>
  #checkEmail{

  }
</style>
